const { override, fixBabelImports, addLessLoader } = require('customize-cra');

module.exports = override(
  fixBabelImports('import', {
    libraryName: 'antd',
    libraryDirectory: 'es',
    style: true,
  }),
  addLessLoader({
    javascriptEnabled: true,
    modifyVars: {
      '@font-size-base': '18px',
      '@heading-color': '#fff',//标题色
      '@text-color': '#fff',//主文本色
      '@text-color-secondary' : '#eee', // 次文本色
      '@disabled-color' : '#ccc',// 失效色
    },
  }),
);